package com.bugstack.domain.activity.service.quota;

import com.bugstack.domain.activity.model.entity.*;
import com.bugstack.domain.activity.reopsitory.IActivityRepository;
import com.bugstack.domain.activity.service.quota.rule.factory.DefaultActivityChainFactory;

/**
 * @Author: czb
 * @Description: 抽奖活动的支撑类
 * @DateTime: 2025/3/21 17:11
 **/
public class RaffleActivityQuotaSupport {
    protected DefaultActivityChainFactory defaultActivityChainFactory;

    protected IActivityRepository activityRepository;

    public RaffleActivityQuotaSupport(IActivityRepository activityRepository, DefaultActivityChainFactory defaultActivityChainFactory) {
        this.activityRepository = activityRepository;
        this.defaultActivityChainFactory = defaultActivityChainFactory;
    }

    public ActivitySkuEntity queryActivitySku(Long sku) {
        return activityRepository.queryActivitySku(sku);
    }

    public ActivityEntity queryRaffleActivityByActivityId(Long activityId) {
        return activityRepository.queryRaffleActivityByActivityId(activityId);
    }

    public ActivityCountEntity queryRaffleActivityCountByActivityCountId(Long activityCountId) {
        return activityRepository.queryRaffleActivityCountByActivityCountId(activityCountId);
    }
    public UnpaidActivityOrderEntity queryNoPaidOrder(SkuRechargeEntity skuRechargeEntity) {
        return activityRepository.queryNoPaidOrder(skuRechargeEntity);
    }
}
